package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.dao.DishDao;
import com.example.domain.Dish;
import com.example.domain.DishFlavor;
import com.example.dto.DishDto;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface DishService extends IService<Dish> {
    public int selectByCategoryId(Long id);

    public List<Dish> selectall(int pageCount,int pageSize);

    public int selectcount();

    public List<Dish> selectbyname(int pageSize,int pageCount,String name);

    public void save(DishDto dishDto);

    public Dish selectbyid(Long id);

    public void update(DishDto dishDto);

    public void dishStatusByStatus(Dish dish);

    public void deleteDish(Long id);

    public List<Dish> selectbycategoryid(Long id);

    public List<Dish> selectbycategoryidandstatus(Dish dish);
}
